package cn.dinghu.pro.service;

import cn.dinghu.pro.common.ResultData;
import cn.dinghu.pro.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sun.deploy.ui.AppInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author xibao
 * @since 2025-10-15
 */
public interface IOrdersService extends IService<Orders> {
    ResultData updateStatus(int status, int id);

    ResultData add(Orders orders);

    ResultData edit(Orders orders);

    // 获取列表
    public List<Orders> getAppInfoList(Integer userId,String nurseName, String userName, String orderStatus, String category, String phone,Integer pageNo, Integer pageSize);
    // 获取总条数
    public int getAppInfoCount(Integer userId,String nurseName, String userName, String orderStatus, String category, String phone);
    // 分页
    public ResultData getPageInfo(Integer userId,String nurseName, String userName, String orderStatus, String category, String phone,Integer pageNo,Integer pageSize);

    public int updatePj(int orderId, int pj);
}
